const jwt = require('jsonwebtoken');
const dotenv = require('dotenv');

dotenv.config();

const token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjU5ODk0NzkyNzU5MjQ2MTgwMDAsImlhdCI6MTc0MDAxNTQzOH0.FN-l681WSx9nn2uyiCwn7L-beLvquIcLqVPapurMXKU';

try {
    const decoded = jwt.verify(token, process.env.JWT_SECRET);
    console.log('解码后的token内容:', decoded);
} catch (error) {
    console.error('token验证错误:', error);
}